package com.example.demo.service.Imp;

import com.example.demo.entity.req.GetEmpsRes;
import com.example.demo.entity.table.Emp;
import com.example.demo.mapper.EmpMapper;
import com.example.demo.service.EmpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class EmpServiceImp implements EmpService {
    @Autowired
    EmpMapper empMapper;

    @Override
    public List<Emp> getEmps(GetEmpsRes params) {

        log.info(params.toString());

        return empMapper.getEmps(params);
    }

}
